package day09API.Exception;

/**
 * @author DBX
 * @effect 异常常用方法
 * @date 2021/8/30 0030 - 14:31
 */
public class ExceptionAPIDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了");
        try {
            String s = "abc";
            System.out.println(Integer.parseInt(s));
        } catch (NumberFormatException e) {
            e.printStackTrace();
            System.out.println("==============>");
            String s = e.getMessage();
            System.out.println(s);
        }
        System.out.println("程序结束了");
    }
}
